package com.HomeWorkhsp.Chapter08.homework.homework02;

public class Staff {
    private String name;
    private double dailyWage;
    private int days;
    private double grade;

    public Staff(String name, double dailyWage, int days, double grade) {
        this.name = name;
        this.dailyWage = dailyWage;
        this.days = days;
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDailyWage() {
        return dailyWage;
    }

    public void setDailyWage(double dailyWage) {
        this.dailyWage = dailyWage;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    public void PrintSalary() {
        System.out.println(name + " 工资是：" + (dailyWage * days * grade));
    }
}
